<?php
	require($_config['root'].'/smarty/Smarty.class.php');
	class MySmarty extends Smarty{
		function __construct(){
			parent::__construct();
			global $_config;
			$this->setTemplateDir($_config['root'].'/templete/');
			$this->setCompileDir($_config['root'].'/templete_c/');
			$this->setConfigDir($_config['root'].'/configs/');
			$this->setCacheDir($_config['root'].'/cache/');
		}
	};
	$smarty = new MySmarty();
?>